<template>
  <div class="QingNavBar">
    <van-nav-bar
    :title="title"
    fixed
    :left-arrow="showLeftArrow"
    @click-left="showLeftArrow && $router.back()"
    >
    </van-nav-bar>
  </div>    
</template>
<script>
export default {
  name: 'QingNavBar',
  data () {
    return {
    }
  },
  props: {
    title: {
        type: String,
        default: '标题'
    },
    showLeftArrow: {
        type: Boolean,
        default: false
    },
  },
  methods: {
  },
  created () {
  },
  mounted () {
  },
}
</script>
<style lang="less" scoped>
::v-deep.van-nav-bar {
    background-color: #07c160;
    .van-nav-bar__title {
        color: #fff;
        font-weight: 700;
    }
    .van-icon {
      color: #fff;
    }
}
</style>
